package com.hulu.yec.teach.testpaper.entity;

import java.util.Date;

import com.hulu.yec.common.annotation.Column;

/**
 * 
 * @author Administrator
 *
 */
public class TestPaperEntity {

    
	private int id;
	//名称
	private String name;
	//试卷存放
	@Column("paper_url")
	private String paperUrl;
	//试卷类型：1、平时测试；2、结业考试。
	@Column("paper_type")
	private int paperType;
	//对应课程的表id
	@Column("course_id")
	private int courseId;
	//总分分数
	@Column("total_point")
	private int totalPoint;
	//通过分数
	@Column("pass_point")
	private int passPoint;
	//总时间（分）
	@Column("total_minutes")
	private int totalMinutes;
	//单选题个数
	@Column("single_option_number")
	private int singleOptionNumber;
	//单选题单个分数
	@Column("single_option_each_point")
	private int singleOptionEachPoint;
	//单选题难度：1、低；2、中；3、较高；4、高
	@Column("single_option_difficulty")
	private int singleOptionDifficulty;
	//多选题个数
	@Column("multi_option_number")
	private int multiOptionNumber;
	//多选题单个分数
	@Column("multi_option_each_point")
	private int multiOptionEachPoint;
	//多选题难度：1、低；2、中；3、较高；4、高。
	@Column("multi_option_difficulty")
	private int multiOptionDifficulty;
	//判断题个数
	@Column("judge_number")
	private int judgeNumber;
	//判断题单个分数
	@Column("judge_each_point")
	private int judgeEachPoint;
	//判断题难度：1、低；2、中；3、较高；4、高。
	@Column("judge_difficulty")
	private int judgeDifficulty;
	//对应用户表id
	@Column("opreate_user_id")
	private int opreateUserId;
	//操作时间
	@Column("opreate_time")
	private Date opreateTime;
	//状态：1、有效；2、无效
	private int state;
	//备注
	private String memo;
	 /**
	  * 扩展
	  * 
	  */
	//课程名
   private String courseName;
   //操作者（用户名）
   private String userName;
   //课程表pId
   private int pId;
	public int getpId() {
	return pId;
}
public void setpId(int pId) {
	this.pId = pId;
}

	public String getUserName() {
	return userName;
}

public void setUserName(String userName) {
	this.userName = userName;
}

	public String getCourseName() {
		return courseName;
	}

	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}

	public TestPaperEntity() {
	
	}


	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPaperUrl() {
		return paperUrl;
	}

	public void setPaperUrl(String paperUrl) {
		this.paperUrl = paperUrl;
	}
	//试卷类型：1、平时测试；2、结业考试。
	public String getPaperTypeStr(){
		if(paperType == 1){
		return "平时考试";	
		}else{
			return "结业考试";
		}
	}
	
	public int getPaperType() {
		return paperType;
	}
   
	public void setPaperType(int paperType) {
		this.paperType=paperType;
	}
	
	

	public int getCourseId() {
		return courseId;
	}

	public void setCourseId(int courseId) {
		this.courseId = courseId;
	}

	public int getTotalPoint() {
		return totalPoint;
	}

	public void setTotalPoint(int totalPoint) {
		this.totalPoint = totalPoint;
	}

	public int getPassPoint() {
		return passPoint;
	}

	public void setPassPoint(int passPoint) {
		this.passPoint = passPoint;
	}

	public int getTotalMinutes() {
		return totalMinutes;
	}

	public void setTotalMinutes(int totalMinutes) {
		this.totalMinutes = totalMinutes;
	}

	public int getSingleOptionNumber() {
		return singleOptionNumber;
	}

	public void setSingleOptionNumber(int singleOptionNumber) {
		this.singleOptionNumber = singleOptionNumber;
	}

	public int getSingleOptionEachPoint() {
		return singleOptionEachPoint;
	}

	public void setSingleOptionEachPoint(int singleOptionEachPoint) {
		this.singleOptionEachPoint = singleOptionEachPoint;
	}
   public String getSingleOptionDifficultyStr(){
	   //1、低；2、中；3、较高；4、高。
	    if(singleOptionDifficulty == 1){
	    	return "低";
	    }else if(singleOptionDifficulty == 2){
	    	return "中";
	    }else if(singleOptionDifficulty == 3){
	    	return "较高";
	    }else{
	    	return "高";
	    }
   } 
	public int getSingleOptionDifficulty() {
		return singleOptionDifficulty;
	}

	
	public void setSingleOptionDifficulty(int singleOptionDifficulty) {
		this.singleOptionDifficulty = singleOptionDifficulty;
	}
	public int getMultiOptionNumber() {
		return multiOptionNumber;
	}

	public void setMultiOptionNumber(int multiOptionNumber) {
		this.multiOptionNumber = multiOptionNumber;
	}

	public int getMultiOptionEachPoint() {
		return multiOptionEachPoint;
	}

	public void setMultiOptionEachPoint(int multiOptionEachPoint) {
		this.multiOptionEachPoint = multiOptionEachPoint;
	}
	public String  getMultiOptionDifficultyStr(){
		   //1、低；2、中；3、较高；4、高。
		    if(multiOptionDifficulty == 1){
		    	return "低";
		    }else if(multiOptionDifficulty == 2){
		    	return "中";
		    }else if(multiOptionDifficulty == 3){
		    	return "较高";
		    }else{
		    	return "高";
		    }
	   } 
	public int getMultiOptionDifficulty() {
		return multiOptionDifficulty;
	}

	public void setMultiOptionDifficulty(int multiOptionDifficulty) {
		this.multiOptionDifficulty= multiOptionDifficulty;
	}

	public int getJudgeNumber() {
		return judgeNumber;
	}

	public void setJudgeNumber(int judgeNumber) {
		this.judgeNumber = judgeNumber;
	}

	public int getJudgeEachPoint() {
		return judgeEachPoint;
	}

	public void setJudgeEachPoint(int judgeEachPoint) {
		this.judgeEachPoint = judgeEachPoint;
	}
	public String  getJudgeDifficultyStr(){
		   //1、低；2、中；3、较高；4、高。
		    if(judgeDifficulty == 1){
		    	return "低";
		    }else if(judgeDifficulty == 2){
		    	return "中";
		    }else if(judgeDifficulty == 3){
		    	return "较高";
		    }else{
		    	return "高";
		    }
	   } 
	public int getJudgeDifficulty() {
		return judgeDifficulty;
	}

	public void setJudgeDifficulty(int judgeDifficulty) {
	this.judgeDifficulty = judgeDifficulty;
	}
	public int getOpreateUserId() {
		return opreateUserId;
	}

	public void setOpreateUserId(int opreateUserId) {
		this.opreateUserId = opreateUserId;
	}

	public Date getOpreateTime() {
		return opreateTime;
	}

	public void setOpreateTime(Date opreateTime) {
		this.opreateTime = opreateTime;
	}
	//状态：1、有效；2、无效
	public String getStateStr(){
		if(state == 1){
			return "有效";
		}else{
			return "无效";
		}
	}
	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
       }


	@Override
	public String toString() {
		return "TestPaperEntity [id=" + id + ", name=" + name + ", paperUrl="
				+ paperUrl + ", paperType=" + paperType + ", courseId="
				+ courseId + ", totalPoint=" + totalPoint + ", passPoint="
				+ passPoint + ", totalMinutes=" + totalMinutes
				+ ", singleOptionNumber=" + singleOptionNumber
				+ ", singleOptionEachPoint=" + singleOptionEachPoint
				+ ", singleOptionDifficulty=" + singleOptionDifficulty
				+ ", multiOptionNumber=" + multiOptionNumber
				+ ", multiOptionEachPoint=" + multiOptionEachPoint
				+ ", multiOptionDifficulty=" + multiOptionDifficulty
				+ ", judgeNumber=" + judgeNumber + ", judgeEachPoint="
				+ judgeEachPoint + ", judgeDifficulty=" + judgeDifficulty
				+ ", opreateUserId=" + opreateUserId + ", opreateTime="
				+ opreateTime + ", state=" + state + ", memo=" + memo
				+ ", courseName=" + courseName + ", userName=" + userName + "]";
	   }
	
	}



